/* 搜索车辆页面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑", sans-serif;
    background-color: #fff;
}

.head-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin-left: 15px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f2f5;
}

.user-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 搜索区域样式 */
.search-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.search-filters {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-section {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.filter-select {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 15px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: #0066cc;
    outline: none;
}

.search-btn {
    height: 45px;
    padding: 0 30px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #0052a3;
}

/* 排序区域样式 */
.sort-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.sort-label {
    margin-right: 10px;
    font-weight: 600;
    color: #333;
}

.sort-select {
    height: 35px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

/* 车辆展示区域样式 */
.cars-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.car-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f2f5;
}

.car-info {
    padding: 20px;
}

.car-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.car-brand {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.car-price {
    font-size: 20px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
}

.rent-btn {
    width: 100%;
    height: 40px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rent-btn:hover {
    background-color: #0052a3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        min-width: auto;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .cars-container {
        grid-template-columns: 1fr;
    }
}

/* 空结果提示 */
.no-cars {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}